Updating a Database Using Flash MX Professional 2004
Table of Contents
Setting up the ColdFusion Component
To set up the ColdFusion component, follow these steps:
- Save the Access database file TimeTrax.mdb in a folder (for example, C:\RDBMS_CFC\TimeTrax.mdb)
-
Add a ColdFusion Data Source for the TimeTrax.mdb file.
- Open ColdFusion administrator.
- Click the Data Sources link.
- Type TimeTrax in the Data Source Name text box, select Microsoft Access from the Driver combo box, and click the Add button.
- Click the Browse button and navigate to the TimeTrax.mdb.
- Click the Submit button.
- Verify that the new Data Source has a status of OK.
-
Save the RDBMSProcessor.cfc file into the web root of your ColdFusion directory.
- In version 6.0, put the file in the wwwroot directory under your ColdFusion install directory.
- In version 6.1, put it in the JRun4\servers\cfusion\cfusion-ear\cfusion-war directory.
Note: The sample ColdFusion Component gives you the ability to run a query statement against any ColdFusion data source that you have set up on your machine. You should install it to the web root folder only within a development environment behind a secure firewall or on a computer that is not connected to the Internet! If you intend to use this component in a production environment you must take the necessary steps to secure it.